﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MessageCommon;
using MessageCommon.GlobalType;
using MessageBase;
using System.Runtime.Remoting;

namespace ReceiveClient
{
    public class ClientBase
    {
        #region 构造函数

        ClientBase()
        {
            RemotingConfiguration.Configure(GlobalConst.CLIENT_CONFIG, false);
            m_objMessage = new MessageObject();
        }

        public static ClientBase Instance
        {
            get
            {
                return Nested.m_objInstance;
            }
        }

        class Nested
        {
            static Nested()
            {

            }

            internal static readonly ClientBase m_objInstance = new ClientBase();
        }

        #endregion

        MessageObject m_objMessage;
        public MessageObject ClientObject
        {
            get { return Instance.m_objMessage; }
        }

        public string UsersID
        {
            get;
            set;
        }
    }
}
